package com.wrial.mall.ware.feign;
/*
 * @Author  Wrial
 * @Date Created in 13:05 2020/5/17
 * @Description
 */

import com.wrial.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("mall-product")
public interface ProductFeignService {

    /**
     * 也可以写api开头给网关发请求
     * @param skuId
     * @return
     */
    @GetMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);
}
